<template>
	<view class="gao">
		
		<li v-for="(item,index) in list.records">
		<p>	{{item.title}}</p>
		<p class='times'>{{item.publishTime}}</p>
	</li>
	
	</view>
</template>

<script>
	export default {
		data(){
			return {
				list:[]
			}
		},
			
		mounted(){
			uni.request({
			    url: 'http://111.67.198.176:8112/shop/notice/noticeList', 
				method:'GET',
			    data: {
			        text: 'uni.request'
			    },			
			    header: {
			        'custom-header': 'hello' //自定义请求头信息
			    },
			    success: (res) => {	
					this.list=res.data
					console.log(this.list,'++++++++++++++');
			        this.text = 'request success';
			    }
			});
		}
	}
</script>

<style scoped>
	.gao{
		font-size: 12px;
		
	}
	.gao li{
		height: 40px;
		border-bottom: solid 1px #ccc;
	}
	.times{
		margin-left: 60%;
	}
</style>